// cover some element-ui styles
// cover some element-ui styles
/* 修改整体背景 */
body .el-container,
body .el-main,
body .el-dialog,
body .el-card,
body .el-table,
body .el-form {
  //background: #0a1a2a !important; /* 使用你的科技感背景色 */
  color: #ffffff !important; /* 修改文字颜色 */
}

/* 修改输入框背景 */
.el-input__inner,
.el-textarea__inner {
  background: rgba(0, 131, 255, 0.1) !important;
  border-color: #003350 !important;
  color: #00FFFF !important;
}

.el-card {
  /* 卡片容器样式 */
  background: rgba(0, 40, 60, 0.8) !important;
  border: 1px solid rgba(0, 131, 255, 0.3) !important;
  border-radius: 8px !important;
  box-shadow: 0 2px 12px 0 rgba(0, 92, 184, 0.2) !important;

  /* 标题样式 */
  .el-card__header {
    background: linear-gradient(90deg, rgba(0, 100, 200, 0.5), transparent) !important;
    border-bottom: 1px solid #004080 !important;
    padding: 12px 20px !important;

    .el-card__header-title {
      color: #00FFFF !important;
      font-size: 18px;
      font-weight: 500;
    }
  }

  /* 内容区域样式 */
  .el-card__body {
    padding: 10px !important;
    color: rgba(255,255,255,0.8);
    /* 内部表单元素适配 */
    .el-form-item__label {
      color: $fontColor !important;
      font-size: $fontSize !important;
    }
  }
}

.el-input-group__append {
  /* 背景与边框 */
  background: linear-gradient(145deg, rgba(0,100,200,0.3), rgba(0,40,80,0.6)) !important;
  border: 1px solid #003350 !important;
  border-left: none !important; /* 移除左侧边框 */

  /* 文字与图标 */
  color: $fontColor !important;
  font-family: 'Courier New', monospace;

  /* 过渡效果 */
  transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);

  /* 阴影与发光 */
  box-shadow:
          inset 0 0 8px rgba(0,131,255,0.2),
          0 2px 4px rgba(0,0,0,0.1);
}

/* 按钮样式重置 */
.el-input-group__append .el-button {
  background: transparent !important;
  border: none !important;
  color: inherit !important;
  padding: 0 15px !important;

  /* 按钮悬停效果 */
  &:hover {
    background: rgba(0,200,255,0.1) !important;
    transform: translateY(-1px);
    box-shadow: 0 2px 6px rgba(0,131,255,0.2);
  }

  /* 按钮点击效果 */
  &:active {
    transform: translateY(1px);
    box-shadow: none;
  }
}


/* 输入框与附加区域联动效果 */
.el-input-group:hover {
  .el-input__inner {
    border-color: $fontColor !important;
  }
  .el-input-group__append {
    border-color: $fontColor !important;
    background: rgba(0,131,255,0.2) !important;
  }
}

/* 基础容器样式 */
.el-input-number {
  /* 背景与边框 */
  background: linear-gradient(145deg, #0a1a2a, #0a2a3a) !important;
  border: 1px solid #003350 !important;
  border-radius: 4px !important;
  box-shadow: 0 2px 8px rgba(0, 92, 184, 0.2) !important;

  /* 过渡效果 */
  transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);

  /* 禁用状态 */
  &.is-disabled {
    opacity: 0.6;
    background: rgba(16, 32, 64, 0.5) !important;
  }
}

/* 输入框主体 */
.el-input-number__decrease,
.el-input-number__increase,
.el-input-number .el-input__inner {
  /* 统一背景与边框 */
  background: transparent !important;
  border-color: #004080 !important;
  color: #00FFFF !important;

  /* 字体设置 */
  font-family: 'Courier New', monospace;
  font-size: 14px;
}

/* 输入框聚焦状态 */
.el-input-number.is-active {
  border-color: $fontColor !important;
  box-shadow: 0 0 15px rgba(0, 200, 255, 0.3) !important;
}

/* 增减按钮样式 */
.el-input-number__decrease,
.el-input-number__increase {
  /* 基础按钮样式 */
  width: 28px !important;
  background: rgba(0, 100, 200, 0.2) !important;
  border-radius: 3px !important;

  /* 按钮图标 */
  .el-icon {
    color: $fontColor !important;
    font-size: 14px;
    filter: drop-shadow(0 0 2px rgba(0,200,255,0.5));
  }

  /* 悬停效果 */
  &:hover:not(.is-disabled) {
    background: rgba(0, 131, 255, 0.3) !important;
    .el-icon {
      transform: scale(1.2);
    }
  }

  /* 禁用状态 */
  &.is-disabled {
    opacity: 0.4;
    .el-icon {
      color: #6080a0 !important;
    }
  }
}

/* 输入区域特殊处理 */
.el-input-number .el-input__inner {
  padding-right: 50px !important; /* 调整按钮区域宽度 */
  text-align: center;
  border-left: 1px solid #003350 !important;
  border-right: 1px solid #003350 !important;
}

/* 输入框样式 */
.el-select .el-input__inner {
  background: #193d60 !important;
  border: 1px solid rgba(0, 200, 255, 0.6) !important;
  color: $fontColor !important;
  transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
}

/* 下拉箭头 */
.el-select .el-input__suffix .el-icon-arrow-up {
  color: $fontColor !important;
}

/* 下拉面板样式 */
.el-select-dropdown {
  background: #0a2a3a !important;
  border: 1px solid $fontColor !important;
  box-shadow: 0 0 15px rgba(0, 200, 255, 0.3) !important;
}

/* 下拉选项 */
.el-select-dropdown__item {
  color: #80dfff !important;
  background: transparent !important;
}

.el-select-dropdown__item.hover,
.el-select-dropdown__item:hover {
  background: rgba(0, 200, 255, 0.1) !important;
}

/* 选中状态 */
.el-select-dropdown__item.selected {
  color: $fontColor !important;
  font-weight: bold !important;
}

/* 禁用状态 */
.el-select.is-disabled .el-input__inner {
  background: rgba(10, 26, 42, 0.5) !important;
  border-color: rgba(0, 200, 255, 0.2) !important;
}

/* 错误状态 */
.el-select.is-error .el-input__inner {
  border-color: #ff3040 !important;
  box-shadow: 0 0 8px rgba(255, 48, 64, 0.3) !important;
}

/* 下拉面板动画 */
.el-select-dropdown {
  transition:
          opacity 0.3s ease,
          transform 0.3s cubic-bezier(0.4, 0, 0.2, 1) !important;
}

/* 全局滚动条样式 */
.el-select-dropdown .el-scrollbar__thumb {
  background-color: rgba(0, 200, 255, 0.4) !important;
}

/* 修改表格背景 */
.el-table {
  background: transparent !important;
}
.el-table th,
.el-table tr {
  background: rgba(0, 100, 200, 0.1) !important;

  .hover-row {
    background: rgba(0, 100, 200, 0.1) !important;
  }

}

.el-table thead {
 color: $fontColor !important;
}

/* 修改按钮颜色 */
.el-button--primary {
  background: $fontColor !important;
  border-color: $fontColor !important;
}


.el-menu-item {
  font-size: $fontSize !important; /* 设置你想要的字体大小 */
}


.el-descriptions {
  font-size: $fontSize !important; /* 设置你想要的字体大小 */
}

 .el-col {
  font-size: $fontSize !important;; /* 设置为全局统一的字体大小 */
}

.el-row {
  margin-top: 10px;
}

/* 全局样式文件中 */
.el-button {
  font-size: $fontSize !important; /* 设置为全局统一的字体大小 */
  letter-spacing: 5px;
}

/* 或者更具体地选择按钮内部的文本 */
.el-button__inner {
  font-size: $fontSize !important; /* 设置为全局统一的字体大小 */
}

// to fixed https://github.com/ElemeFE/element/issues/2461
.el-dialog {
  transform: none;
  left: 0;
  position: relative;
  margin: 0 auto;
}

.el-dialog__title {
  font-size: $titleSize !important; /* 修改为你需要的字体大小 */
  letter-spacing: 10px;
}

.el-message-box__message {
  font-size: $messageSize;
}

// refine element ui upload
.upload-container {
  .el-upload {
    width: 100%;

    .el-upload-dragger {
      width: 100%;
      height: 200px;
    }
  }
}

// dropdown
.el-dropdown-menu {
  a {
    display: block
  }
}

// to fix el-date-picker css style
.el-range-separator {
  box-sizing: content-box;
}

.el-table .cell {
  font-size: $tableColumnFontSize !important; /* 设置字体大小为14像素 */
}

.el-table .el-button {
  font-size:  $tableColumnFontSize !important; /* 设置为全局统一的字体大小 */
}

/* 或者更具体地选择按钮内部的文本 */
.el-table .el-button__inner {
  font-size: $tableColumnFontSize !important; /* 设置为全局统一的字体大小 */
}

/* 或者只设置表头的字体大小 */
.el-table__header-wrapper th {
  font-size: $tableColumnFontSize !important; /* 设置表头字体大小为16像素 */
}

.el-table__body tr.current-row>td.el-table__cell, .el-table__body tr.selection-row>td.el-table__cell {
  background-color: transparent !important;
}

.el-pagination__total {
  font-size: $messageSize !important;
}

.el-pagination button, .el-pagination span:not([class*=suffix]) {
  font-size: $messageSize !important;
}

.el-tabs__item {
  font-size: $fontSize !important;
  padding: 20px 40px;
  color: white !important;
  font-weight: 700 !important;
}

.el-tabs__item.is-active {
  color: $fontColor !important;
}
.el-tabs__active-bar {
  color: $fontColor !important;
}

.el-dialog {
  background-color: #003350 !important;

  .el-dialog__title {
    color: white !important;
  }

  .el-form-item__label {
    color: white !important;
  }
}

.el-pagination__total {
  color: white !important;
}

.el-pagination__jump {
  color: white !important;
}

.el-button--primary {
  background-color: $fontColor !important;
}